import Vue from "vue";
import Router from "vue-router";
import commonRoute from "./router/common";
import layout from "@/views/layout/index.vue";
import citycollegeRoute from './projects/citycollege/route';
Vue.use(Router);
interface routeConfig {
  mode: any;
  base: string;
  scrollBehavior(): void;
  routes: any[];
}
class Routes implements routeConfig {
  mode: any = "history";
  base: string = "/";
  scrollBehavior: any = () => ({
    y: 0,
  });
  routes!: any[];
  constructor(routes: any[]) {
    this.routes = routes;
  }
}
const nn = new Routes([
  { path: "", component: layout, children: [...commonRoute, citycollegeRoute] },
]);
export default new Router(nn);
